<?php

namespace app\index\model;

use think\Model;

class Admin extends Model
{
    //登陆验证
    public function check($data) {
        $res = self::where($data)->find();
        if($res) {
            return true;
        }else {
            return false;
        }
    }
}
